package whu.hami.tea.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import whu.hami.tea.R;
import whu.hami.tea.view.TitleBar;

/**
 * Created by pendragon on 17-5-29.
 */

public class PublishActivity extends AppCompatActivity {

    private TitleBar titleBar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_publish);

        titleBar = (TitleBar) findViewById(R.id.title_bar);
        titleBar.setTitle("我想说的");
        titleBar.setActionListener("发送", new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                
            }
        });
    }

    @Override
    public void onBackPressed() {
        finish();
    }
}
